
#include <array>
#include <cassert>
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
#include <sstream>
#include <string>
#include <vector>

using namespace std;
using json = nlohmann::json;

struct A {
  int a{2};
};
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(A, a)

struct B {
  A a;
  int b{3};
};
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(B, a, b)

/**
 * @brief 测试把注释从json文件中删除
 *
 * @return int
 */
int main() {
  B b;
  json j = b;
  cout << j.dump(4) << endl;
  return 0;
}